/*
 * On/Off generator
 * Created on: 2010-03-12
 * Author: Piotr Izak
 */
#include "OnOffGenerator.h"
Define_Module(OnOffGenerator)

void OnOffGenerator::initialize()
{
	shape = par("shape");
	scale = par("scale");
	shift = par("shift");

	AbstractGenerator::initialize();
}


simtime_t OnOffGenerator::getNextPacketArrivalTime(simtime_t lastPacketArrival)
{
	return lastPacketArrival + pareto_shifted(shape,scale,shift);
}
